home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / gardenin.swf / scripts / DefineButton2_601 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2007-09-27  |  1.5 KB  |  53 lines

  1. on(release){
  2.    if(this.weed_mc._currentframe == 1)
  3.    {
  4.       if(_parent.mc._currentframe == 3 && _parent.mc.tool_mc._currentframe == 1)
  5.       {
  6.          this.gotoAndPlay("cut");
  7.          _parent.mc.gotoAndStop(1);
  8.       }
  9.    }
  10.    if(this.flower_ok)
  11.    {
  12.       if(this.weed_mc._currentframe == 1)
  13.       {
  14.          if(_parent.mc._currentframe == 3 && _parent.mc.tool_mc._currentframe == 3)
  15.          {
  16.             this.water_mc.play();
  17.             _parent.mc.gotoAndStop(1);
  18.          }
  19.       }
  20.       else if(this.weed_mc._currentframe == 2)
  21.       {
  22.          if(_parent.mc._currentframe == 3 && _parent.mc.tool_mc._currentframe == 1)
  23.          {
  24.             this.weed_mc.play();
  25.             _parent.mc.gotoAndStop(1);
  26.          }
  27.          if(_parent.mc._currentframe == 3 && _parent.mc.tool_mc._currentframe == 3)
  28.          {
  29.             this.water_mc.play();
  30.             _parent.mc.gotoAndStop(1);
  31.          }
  32.       }
  33.       if(this.bugs_mc._currentframe == 11)
  34.       {
  35.          if(_parent.mc._currentframe == 3 && _parent.mc.tool_mc._currentframe == 4)
  36.          {
  37.             this.bugs_mc.play();
  38.             _parent.cost_point7.play();
  39.             _parent.mc.gotoAndStop(1);
  40.          }
  41.       }
  42.       if(this.tonic_mc._currentframe == 1)
  43.       {
  44.          if(_parent.mc._currentframe == 3 && _parent.mc.tool_mc._currentframe == 5)
  45.          {
  46.             this.tonic_mc.play();
  47.             _parent.cost_point8.play();
  48.             _parent.mc.gotoAndStop(1);
  49.          }
  50.       }
  51.    }
  52. }
  53.